package helloworld.dao;

import helloworld.dao.DAOException;
import helloworld.exception.DuplicateCourseException;
import helloworld.admin.bean.CourseAdminBean;;

/** 
 * @author TUYEN-DM
 *         <p>
 *         2009/05/13
 *         </p>
 *         <p>
 *         CourseDao is the DAO interface object of Course.
 *         </p>
 */
public interface CourseDao {
	public CourseAdminBean fetchDetail(String courseName) throws DAOException;
	public CourseAdminBean fetchDetailID(int courseID) throws DAOException;
	public CourseAdminBean[] find(String courseName) throws DAOException;
	public int create(CourseAdminBean course) throws DAOException,DuplicateCourseException;
	public int update(CourseAdminBean course) throws DAOException,DuplicateCourseException;
	public void delete(int courseID) throws DAOException;

}
